package comtwo.dao.impl;

import comtwo.dao.accountdao;
import comtwo.service.account;
import org.apache.ibatis.session.SqlSession;
import tool.mybatistool;

import java.util.List;

public class accountdaoImpl implements accountdao {
    @Override
    public List<account> select() {
        SqlSession sqlSession=mybatistool.getsqlsession();
        accountdao accountdao=
                sqlSession.getMapper(comtwo.dao.accountdao.class);
        List<account>list=accountdao.select();
        for (account acc:list
             ) {
            System.out.println(acc);
        }
        return null;
    }
}
